package de.unidue.masterproject.plugin.classes_literaturplugin;

import com.j256.ormlite.field.DatabaseField;

public abstract class Quote {
	
	@DatabaseField(generatedId = true)
	private int id;
	
	@DatabaseField
	private String content;
	
	@DatabaseField
	private String comment;
	
	@DatabaseField(foreign = true)
	private Literature reference;
	
	@DatabaseField
	private String owner;
	
	@DatabaseField
	private boolean published;



	protected Quote(String content, String comment, String owner, boolean published){
		this.content = content;
		this.comment = comment;
		this.owner = owner;
		this.published = published;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Literature getReference() {
		return reference;
	}

	public void setReference(Literature reference) {
		this.reference = reference;
	}
	
	public String getOwner() {
		return owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	public boolean isPublished() {
		return published;
	}

	public void setPublished(boolean published) {
		this.published = published;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	
	public Quote(){};
}
